Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grass.pygrass: Support shortened parameter values #3275

Merged

Conversation

wenzeslaus
Copy link
Member

Command line interface parser allows parameter (option) values such as 'val' when full value should be 'value'. Parameter class from pygrass does the checking, but does not know about these rules. This addition covers the simple case of val-value which is not much work to implement and maintain. It does not cover more complex cases with underscores and legacy aliases.

The test covers the issue for use=value change in v.to.rast made in #3110.

Strict checking in pygrass is discussed in #3237.

Command line interface parser allows parameter (option) values such as 'val' when full value should be 'value'. Parameter class from pygrass does the checking, but does not know about these rules. This addition covers the simple case of val-value which is not much work to implement and maintain. It does not cover more complex cases with underscores and legacy aliases.

The test covers the issue for use=value change in v.to.rast made in OSGeo#3110.

Strict checking in pygrass is discussed in OSGeo#3237.
@wenzeslaus wenzeslaus self-assigned this Nov 30, 2023
@wenzeslaus
Copy link
Member Author

This has a test covering the full and shortened name. It makes #3110 backward compatible for grass.pygrass just like it is compatible in command line and in grass.script. I intent to merge this soon if there are no objections.

@neteler neteler added this to the 8.4.0 milestone Dec 7, 2023
@wenzeslaus wenzeslaus merged commit 968dd70 into OSGeo:main Dec 21, 2023
18 checks passed
@wenzeslaus wenzeslaus deleted the pygrass-support-shorter-param-values branch December 21, 2023 18:20
HuidaeCho pushed a commit to HuidaeCho/grass that referenced this pull request Jan 9, 2024
Command line interface parser allows parameter (option) values such as 'val' when full value should be 'value'. Parameter class from pygrass does the checking, but does not know about these rules. This addition covers the simple case of val-value which is not much work to implement and maintain. It does not cover more complex cases with underscores and legacy aliases.

The test covers the issue for use=value change in v.to.rast made in OSGeo#3110.

Strict checking in pygrass is discussed in OSGeo#3237.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants